import Vue from 'vue'
import App from './App.vue'
// 三级联动的组件（全局）
import TypeNav from '@/components/TypeNav';
Vue.component(TypeNav.name,TypeNav)
// 引入轮播图的组件
import Carousel from '@/components/Carousel';
Vue.component(Carousel.name,Carousel)
// 引入分页器组件
import Pagination from '@/components/Pagination';
Vue.component(Pagination.name,Pagination)
// 引入路由
import router from '@/router';
// 引入仓库
import store from './store'
Vue.config.productionTip = false
// 引入mock数据
import '@/mock/mockServe'
// 引入swiper样式
import "swiper/css/swiper.css"

new Vue({
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus = this;
  },
  router,
  store
}).$mount('#app')
